/**
 * @Author YuanYuan
 * @Date 2022/9/9
 * @Time 15:19
 */
public class TeseDemo1 {
    static class Counter {
        public int count = 0;

    }

    public static void main(String[] args) {
        Counter counter = new Counter();
        Thread thread = new Thread(()-> {
            while (0 == counter.count) {

            }
        });
    }
}
